/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* REDROCK-TEAM HOMEWORK 2 (20151018)                          *
* Design a music player in HTML and CSS                       *
* Author:    Haruue Icymoon                                   *
* Time:      Tue Oct 20 22:42:58 CST 2015                     *
* Website:   http://www.caoyue.com.cn/                        *
* Test page: http://haruue.azurewebsites.net/Web-2-20151018/  *
* File:      index.html, player.css, player.js                *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/

* {
    font-family: 'Microsoft YaHei', 'Droid Sans Fallback', sans-serif;
    text-shadow: 0px 0px 2px #EEE;
}

hr {
    margin-top: 0px;
    margin-bottom: 0px;
    color: #2D588F;
}

#main, #list_window {
    width: 400px;
    border-radius: 7px;
    box-shadow: 0px 0px 5px #555555;
}

.top, .control, .main_bottom, #list_window, #list_top, #play_list_body {
    width: 400px;
    background-color: #253F60;
}

.top {
    height: 25px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.logo, .close, #set {
    width: 24px;
    height: 24px;
    position: relative;
    top: 3px;
}

.logo {
    float: left;
    left: 3px;
    background-repeat: no-repeat;
}

#logo {
    background-image: url("image/icon.png");
    background-position: -20px 3px;
}

.title {
    color: azure;
}

#title {
    position: relative;
    float: left;
    left: 3px;
    top: 1px;
}

.close {
    float: right;
    right: 3px;
    width: 20px;
    height: 20px;
    background-image: url("image/close.png");
    background-position: 0px 0px;
}

#set {
    float: right;
    width: 20px;
    height: 20px;
    right: 2px;
    background-image: url("image/set.png");
    background-position: 0px, 0px;
}

.close:hover, #set:hover {
    background-position: -18px 0px;
    cursor: pointer;
}

.close:active, #set:active {
    background-position: -36px 0px;
    cursor: pointer;
}

.control {
    height: 130px;
}

div.album {
    position: relative;
    float: left;
    margin: 14px;
    height: 93px;
    width: 93px;
    border-radius: 4px;
    overflow: hidden;
}

img#album {
    height: 100%;
}

.main_control {
    position: relative;
    float: left;
    margin-top: 14px;
    margin-right: 14px;
    margin-left: 0px;
    margin-bottom: 14px;
}

#music_name {
    color: azure;
    position: relative;
    left: 10px;
}

.progress_bar {
    position: relative;
    float: left;
    top: 10px;
    left: 4px;
    width: 200px;
    height: 10px;
}

.long_progress_bar {
    position: absolute;
    top: 10px;
    left: 0px;
    height: 4px;
}

#bg_bar, .bg_bar {
    width: 200px;
    background-color: #2D588F;
    box-shadow: 0px 0px 2px #69C0FC;
    border-radius: 2px;
    z-index: 3;
}

#scroll, .scroll {
    position: relative;
    float: left;
    background: #FFF none repeat scroll 0% 0%;
    top: 6px;
    left: -6px;
    height: 12px;
    width: 12px;
    border-radius: 100%;
    z-index: 6;
}

#scroll:hover, .scroll:hover {
    cursor: pointer;
    box-shadow: azure 0 0 2px;
}

#scroll:active, .scroll:active {
    cursor: pointer;
    margin-top: 1px;
}

#loaded, .loaded {
    width: 0px;
    background-color: #5D88BF;
    border-radius: 2px;
    z-index: 4;
}

#played, .played {
    width: 0px;
    background-color: #DDF;
    border-radius: 2px;
    z-index: 5;
}

.time_bar {
    width: 50px;
    margin-left: -2px;
    float: left;
    position: relative;
    left: 20px;
    top: 13px;
    height: 15px;
    margin-top: 2px;
}

.time {
    background-image: url("image/number.bmp");
    width: 8px;
    height: 15px;
    position: relative;
    float: left;
    padding-right: 2px;
    z-index: 5;
}

.control_music {
    position: absolute;
    float: left;
    left: 25px;
    top: 65px;
}

.button {
    position: relative;
    float: left;
    margin-top: -6px;
}

.button.change {
    top: 5px;
    width: 48px;
    height: 48px;
}

.button.change:hover {
    background-position: -45px 0px;
    cursor: pointer;
}

.button.change:active {
    background-position: -45px 0px;
    cursor: pointer;
    margin-top: -5px;
}

.button.play {
    width: 56px;
    height: 56px;
}

.button.play:hover {
    background-position: -56px 0px;
    cursor: pointer;
}

.button.play:active {
    background-position: -56px 0px;
    cursor: pointer;
    margin-top: -5px;
}

.button#prev {
    background-image: url("image/prev.png");
}

.button#play {
    background-image: url("image/play.png");
}

.button#pause {
    background-image: url("image/pause.png");
}

.button#next {
    background-image: url("image/next.png");
}

.button#random {
    background-image: url("image/mode_05.png");
}

.main_bottom {
    height: 30px;
    padding-top: 5px;
    z-index: 0;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

#sound_icon {
    background-image: url("image/mute.bmp");
    margin-left: 15px;
    width: 15px;
    height: 15px;
    margin-top: 5px;
    position: relative;
    float: left;
    left: 5px;
}

#mute_sound_icon {
    background-image: url("image/mute.bmp");
    background-position: 30px 0px;
    margin-left: 15px;
    width: 15px;
    height: 15px;
    margin-top: 5px;
    position: relative;
    float: left;
    left: 5px;
}

#sound_icon:hover, #mute_sound_icon:hover {
    cursor: pointer;
}

#sound_icon:active, #mute_sound_icon:active {
    margin-top: 6px;
    cursor: pointer;
}

.sound_bar {
    position: relative;
    float: left;
    left: 25px;
}

#sound_scroll {
    position: relative;
    float: left;
    left: 96px;
}

#sound_value {
    width: 100px;
}

#sound_bg_bar {
    width: 100px;
}

.list_chooser {
    position: relative;
    float: right;
    background-position: 0px 0px;
    margin: 0px 2px;
    height: 20px;
}

#music_window_button {
    right: 10px;
    background-image: url("image/browser.png");
    width: 49px;
}

#music_window_button:hover {
    background-position: -49px 0px;
    cursor: pointer;
}

#music_window_button:active {
    background-position: -49px 0px;
    margin-top: 1px;
    cursor: pointer;
}

#lyric_button {
    right: 10px;
    background-image: url("image/lyric.png");
    width: 39px;
}

#lyric_button:hover {
    background-position: -39px 0px;
    cursor: pointer;
}

#lyric_button:active {
    background-position: -39px 0px;
    margin-top: 1px;
    cursor: pointer;
}

#equalizer_button {
    right: 10px;
    background-image: url("image/equalizer.png");
    width: 39px;
}

#equalizer_button:hover {
    background-position: -39px 0px;
    cursor: pointer;
}

#equalizer_button:active {
    background-position: -39px 0px;
    margin-top: 1px;
    cursor: pointer;
}

#play_list_button {
    right: 10px;
    background-image: url("image/playlist.png");
    width: 39px;
}

#play_list_button:hover {
    background-position: -39px 0px;
    cursor: pointer;
}

#play_list_button:active {
    background-position: -39px 0px;
    margin-top: 1px;
    cursor: pointer;
}

#list_window {
    background-color: #253F60;
    position: relative;
    top: 2px;
}

#list_top {
    padding-top: 3px;
}

#list_window_icon {
    margin-top: 3px;
    margin-left: 3px;
    background-repeat: no-repeat;
    background-image: url("image/playlist_logo.png");
    left: 3px;
    top: 3px;
}

#list_window_title {
    position: relative;
    float: left;
    left: 3px;
}

#play_list_body {
    position: relative;
    float: left;
    color: azure;
    font-size: 12px;
    top: -2px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.list {
    position: relative;
    float: left;
    padding-top: 10px;
    color: #BBBBBB;
    line-height: 150%;
}

#play_lists {
    position: relative;
    float: left;
    width: 90px;
    height: auto;
    min-height: 100px;
    background-color: #1F314B;
    text-align: center;
    border-bottom-left-radius: 7px;
}

#play_list_data {
    position: relative;
    padding-left: 10px;
    float: left;
    left: 10px;
    width: 290px;
    height: auto;
    min-height: 100px;
    background-color: #1F314B;
    border-bottom-right-radius: 7px;
}

.song {
    cursor: pointer;
}

.playlist {
    cursor: pointer;
}